package com.mtung.controller;

import com.mtung.feign.ProducerClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhenguo.yao
 * @date 2020/12/12
 */
@RestController
@RequestMapping("/feign")
public class FeignController {

    @Autowired
    private ProducerClient producerClient;

    @GetMapping
    public String testFeign() {
        return "拿到响应: " + producerClient.producerMsg();
    }


}
